package com.mer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mer.entity.Subject;
import org.apache.ibatis.annotations.Param;

/**
 * @program: IIPhase-project
 * @description: SubjectMapper层接口
 * @author: 陈铠
 * @create: 2021-10-19 11:09
 **/
public interface SubjectMapper extends BaseMapper<Subject> {
    /**
     * 增添课程
     * @param subject
     * @return
     */
    int insertSubject(Subject subject);

    /**
     * 修改课程状态
     * @param id
     * @param statusId
     * @return
     */
    int changeStatusById(@Param("id") String id, @Param("statusId") String statusId);
}
